import { useToggle } from '@vueuse/core';
import { defineStore } from 'pinia';
import { type RouteNamedMap } from 'vue-router/auto/routes';

export const useCompanyFunctionOverviewStore = defineStore('CompanyFunctionOverview', () => {
  /** tooltip 开关 */
  const [tooltipOpen, toggleTooltipOpen] = useToggle(false);
  /** drawer 开关 */
  const [drawerOpen, toggleDrawerOpen] = useToggle(false);

  return {
    drawerOpen,
    toggleDrawerOpen,
    tooltipOpen,
    toggleTooltipOpen,
  };
});
